<?php
class AppointmentModel extends Model{
	protected $_validate=array(
			array('name','length','用户名必须在2-10位之间',array(2,10),self::MUST_VALIDATE,self::MODEL_INSERT),
			array('phone','function','手机号不正确','is_phone',self::MUST_VALIDATE,self::MODEL_INSERT),
	);
	protected $_auto=array(
		array('create_time','function','time')
	);
}